<template>
  <div class="page-bottom">
    <div class="main flex justify-center align-center">
      <img class="bottom-line bottom-left"
           src="@/assets/image/page-bottom.png">
      <!-- 加载中的提示 -->
      <span class="text"
            v-show="more && loading">{{loadingText}}</span>
      <!-- 没有更多了 -->
      <span class="text"
            v-show="!more || !loading">{{noMoreText}}</span>
      <img class="bottom-line bottom-right"
           src="@/assets/image/page-bottom.png">
    </div>
  </div>
</template>

<script>
export default {
  name: 'PageBottom',
  data() {
    return {
      isLoading: false
    }
  },
  props: {
    loadingText: {
      type: String,
      default: '加载中'
    },
    noMoreText: {
      type: String,
      default: '这是我的底线了'
    },
    loading: {
      type: Boolean,
      value: true
    },
    more: {
      type: Boolean,
      value: false
    }
  }
}
</script>

<style lang="scss">
.page-bottom {
  width: 100%;
  height: 44px;
  text-align: center;
  .main {
    color: #cccccc;
    font-size: 11px;
    height: 100%;
    .bottom-line {
      width: 40px;
      height: 1px;
    }
    .bottom-left {
      transform: scale(-1, -1);
    }
    .text {
      margin: 0 10px;
    }
  }
}
</style>
